/*
 * Filename:    IntegrityMedicalDaoImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月30日
 */
package com.paic.mhis.hcpms.trust.intergration.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.trust.dto.IntegrityMedicalDTO;
import com.paic.mhis.hcpms.trust.intergration.dao.DoctorIntegrityDAO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("doctorIntegrityDAO")
public class DoctorIntegrityDaoImpl extends BaseDAO implements DoctorIntegrityDAO {

	@Override
	public List<Map<String, Object>> getWarnInfoCount(Map<String, Object> map) {
		return (List<Map<String, Object>>) this._queryForList("getWarnInfoCount", map);
	}

	@Override
	public int getAuditCount(Map<String, Object> map) {
		return this._getInt("getAuditInfoCount", map);
	}

	@Override
	public int getPointCount(Map<String, Object> map) {
		return this._getInt("getPointCount", map);
	}

	public int getCountMedicalDetailReport(Map paramMap) {
		try {
			return this._getInt("getReportAuditCount", paramMap);
		} catch (Exception e) {
			e.printStackTrace();
			return 0;
		}
	}

	public List findMedicalDetailReport(Map paramMap) {
		return (List<IntegrityMedicalDTO>) this._list("medicalDetailAuditReport", paramMap);
	}

	public void updateInsuranceTask(Map paramMap) {
		this._update("updateInsuranceTask", paramMap);

	}

	public void updateAuditOpinion(Map paramMap) {
		this._update("updateAuditOpinion", paramMap);

	}
}
